<?php
class OrderStatusModel extends Models
{
    protected $tableName='order_status';

    public function getTableName(){
        return $this->tableName;
    }

    public function getStatus($statusId){
        $languageModel=$this->model->load('languageModel');
        $langId=$languageModel->getId();
        if($status=$this->findByAttributes(array('order_status_id'=>$statusId,'language_id'=>$langId))){
            if(isset($status['name'])) return $status['name'];
            else return false;
        }else
            return false;
    }
}